<!DOCTYPE html>
<!--
Copyright (c) 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/tracing/model/user_model/user_expectation.html">

<script>
'use strict';

tr.exportTo('tr.model.um', function() {
  function ResponseExpectation(
      parentModel, initiatorTitle, start, duration, opt_isAnimationBegin) {
    tr.model.um.UserExpectation.call(
        this, parentModel, initiatorTitle, start, duration);
    this.isAnimationBegin = opt_isAnimationBegin || false;
  }

  ResponseExpectation.prototype = {
    __proto__: tr.model.um.UserExpectation.prototype,
    constructor: ResponseExpectation
  };

  tr.model.um.UserExpectation.subTypes.register(ResponseExpectation, {
    stageTitle: 'Response',
    colorId: tr.b.ColorScheme.getColorIdForReservedName('rail_response')
  });

  return {
    ResponseExpectation,
  };
});
</script>
